#include "player.hpp"

Player::Player(QWidget *parent) :
    QWidget(parent)
{
    setWindowTitle("You're playing on meatspin's official server");
    _layout = new QGridLayout(this);

    setLayout(_layout);

    _pseudo = new QLabel(this);
    _clients = new QLabel(this);

    _layout->addWidget(_pseudo, 0, 0);
    _layout->addWidget(_clients, 0, 1);
    _layout->setColumnMinimumWidth(1, 120);
}

void Player::setPseudo(QString text)
{
    this->_pseudo->setText(text);
}
